from docx.enum.text import WD_PARAGRAPH_ALIGNMENT

from datareport.api.annotation.Font import Font
from datareport.api.annotation.Style import style
from datareport.impl.paragraph.base.BaseParagraph import BaseParagraph

@style(alignment=WD_PARAGRAPH_ALIGNMENT.CENTER,line_spacing=1.5)
class BiaoTi_1(BaseParagraph):

    def __init__(self):
        super().__init__()
        self.fonts=[
            Font(text='\n\n\n基层党支部“三会一课”组织生活\n',bold=True,size=14),
            Font(text='总结报告\n',bold=True,size=13)
        ]
        self.sort=0
        self.section=1

    def start(self, conn, year, plt):
        self.fonts.append(Font(text='({}年度)'.format(year)))
